<!DOCTYPE html>
<html lang="">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width,initial-scale=1.0" />
        <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
        <title></title>
        <script src="./config/index.js"></script>
    </head>
    <body>
        <div id="app"></div>
        <script>
            document.title = window.SITE_CONFIG.sysName;

            //当宽度为1920px的时候，1rem = 100px
            (function (doc, win) {
                var docEl = doc.documentElement,
                    resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
                    recalc = function () {
                        var clientWidth = docEl.clientWidth;
                        if (!clientWidth) return;
                        if (clientWidth >= 2560) {
                            docEl.style.fontSize = '125px';
                        } else if (clientWidth <= 600) {
                            docEl.style.fontSize = '32px';
                        } else {
                            docEl.style.fontSize = 100 * (clientWidth / 1920) + 'px';
                        }
                    };
                if (!doc.addEventListener) return;
                win.addEventListener(resizeEvt, recalc, false);
                doc.addEventListener('DOMContentLoaded', recalc, false);
            })(document, window);
        </script>
        <!-- built files will be auto injected -->
    </body>
</html>
